package com.yunche.iov.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DeviceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DeviceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNoIsNull() {
            addCriterion("no is null");
            return (Criteria) this;
        }

        public Criteria andNoIsNotNull() {
            addCriterion("no is not null");
            return (Criteria) this;
        }

        public Criteria andNoEqualTo(String value) {
            addCriterion("no =", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotEqualTo(String value) {
            addCriterion("no <>", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoGreaterThan(String value) {
            addCriterion("no >", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoGreaterThanOrEqualTo(String value) {
            addCriterion("no >=", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoLessThan(String value) {
            addCriterion("no <", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoLessThanOrEqualTo(String value) {
            addCriterion("no <=", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoLike(String value) {
            addCriterion("no like", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotLike(String value) {
            addCriterion("no not like", value, "no");
            return (Criteria) this;
        }

        public Criteria andNoIn(List<String> values) {
            addCriterion("no in", values, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotIn(List<String> values) {
            addCriterion("no not in", values, "no");
            return (Criteria) this;
        }

        public Criteria andNoBetween(String value1, String value2) {
            addCriterion("no between", value1, value2, "no");
            return (Criteria) this;
        }

        public Criteria andNoNotBetween(String value1, String value2) {
            addCriterion("no not between", value1, value2, "no");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdIsNull() {
            addCriterion("device_type_id is null");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdIsNotNull() {
            addCriterion("device_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdEqualTo(Integer value) {
            addCriterion("device_type_id =", value, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdNotEqualTo(Integer value) {
            addCriterion("device_type_id <>", value, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdGreaterThan(Integer value) {
            addCriterion("device_type_id >", value, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("device_type_id >=", value, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdLessThan(Integer value) {
            addCriterion("device_type_id <", value, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("device_type_id <=", value, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdIn(List<Integer> values) {
            addCriterion("device_type_id in", values, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdNotIn(List<Integer> values) {
            addCriterion("device_type_id not in", values, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("device_type_id between", value1, value2, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andDeviceTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("device_type_id not between", value1, value2, "deviceTypeId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIsNull() {
            addCriterion("supplier_id is null");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIsNotNull() {
            addCriterion("supplier_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupplierIdEqualTo(Integer value) {
            addCriterion("supplier_id =", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotEqualTo(Integer value) {
            addCriterion("supplier_id <>", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdGreaterThan(Integer value) {
            addCriterion("supplier_id >", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("supplier_id >=", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLessThan(Integer value) {
            addCriterion("supplier_id <", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdLessThanOrEqualTo(Integer value) {
            addCriterion("supplier_id <=", value, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdIn(List<Integer> values) {
            addCriterion("supplier_id in", values, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotIn(List<Integer> values) {
            addCriterion("supplier_id not in", values, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdBetween(Integer value1, Integer value2) {
            addCriterion("supplier_id between", value1, value2, "supplierId");
            return (Criteria) this;
        }

        public Criteria andSupplierIdNotBetween(Integer value1, Integer value2) {
            addCriterion("supplier_id not between", value1, value2, "supplierId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdIsNull() {
            addCriterion("owner_id is null");
            return (Criteria) this;
        }

        public Criteria andOwnerIdIsNotNull() {
            addCriterion("owner_id is not null");
            return (Criteria) this;
        }

        public Criteria andOwnerIdEqualTo(Integer value) {
            addCriterion("owner_id =", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdNotEqualTo(Integer value) {
            addCriterion("owner_id <>", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdGreaterThan(Integer value) {
            addCriterion("owner_id >", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("owner_id >=", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdLessThan(Integer value) {
            addCriterion("owner_id <", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdLessThanOrEqualTo(Integer value) {
            addCriterion("owner_id <=", value, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdIn(List<Integer> values) {
            addCriterion("owner_id in", values, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdNotIn(List<Integer> values) {
            addCriterion("owner_id not in", values, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdBetween(Integer value1, Integer value2) {
            addCriterion("owner_id between", value1, value2, "ownerId");
            return (Criteria) this;
        }

        public Criteria andOwnerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("owner_id not between", value1, value2, "ownerId");
            return (Criteria) this;
        }

        public Criteria andSimNoIsNull() {
            addCriterion("sim_no is null");
            return (Criteria) this;
        }

        public Criteria andSimNoIsNotNull() {
            addCriterion("sim_no is not null");
            return (Criteria) this;
        }

        public Criteria andSimNoEqualTo(String value) {
            addCriterion("sim_no =", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoNotEqualTo(String value) {
            addCriterion("sim_no <>", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoGreaterThan(String value) {
            addCriterion("sim_no >", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoGreaterThanOrEqualTo(String value) {
            addCriterion("sim_no >=", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoLessThan(String value) {
            addCriterion("sim_no <", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoLessThanOrEqualTo(String value) {
            addCriterion("sim_no <=", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoLike(String value) {
            addCriterion("sim_no like", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoNotLike(String value) {
            addCriterion("sim_no not like", value, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoIn(List<String> values) {
            addCriterion("sim_no in", values, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoNotIn(List<String> values) {
            addCriterion("sim_no not in", values, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoBetween(String value1, String value2) {
            addCriterion("sim_no between", value1, value2, "simNo");
            return (Criteria) this;
        }

        public Criteria andSimNoNotBetween(String value1, String value2) {
            addCriterion("sim_no not between", value1, value2, "simNo");
            return (Criteria) this;
        }

        public Criteria andTelIsNull() {
            addCriterion("tel is null");
            return (Criteria) this;
        }

        public Criteria andTelIsNotNull() {
            addCriterion("tel is not null");
            return (Criteria) this;
        }

        public Criteria andTelEqualTo(String value) {
            addCriterion("tel =", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotEqualTo(String value) {
            addCriterion("tel <>", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelGreaterThan(String value) {
            addCriterion("tel >", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelGreaterThanOrEqualTo(String value) {
            addCriterion("tel >=", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelLessThan(String value) {
            addCriterion("tel <", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelLessThanOrEqualTo(String value) {
            addCriterion("tel <=", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelLike(String value) {
            addCriterion("tel like", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotLike(String value) {
            addCriterion("tel not like", value, "tel");
            return (Criteria) this;
        }

        public Criteria andTelIn(List<String> values) {
            addCriterion("tel in", values, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotIn(List<String> values) {
            addCriterion("tel not in", values, "tel");
            return (Criteria) this;
        }

        public Criteria andTelBetween(String value1, String value2) {
            addCriterion("tel between", value1, value2, "tel");
            return (Criteria) this;
        }

        public Criteria andTelNotBetween(String value1, String value2) {
            addCriterion("tel not between", value1, value2, "tel");
            return (Criteria) this;
        }

        public Criteria andIccIdIsNull() {
            addCriterion("icc_id is null");
            return (Criteria) this;
        }

        public Criteria andIccIdIsNotNull() {
            addCriterion("icc_id is not null");
            return (Criteria) this;
        }

        public Criteria andIccIdEqualTo(String value) {
            addCriterion("icc_id =", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdNotEqualTo(String value) {
            addCriterion("icc_id <>", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdGreaterThan(String value) {
            addCriterion("icc_id >", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdGreaterThanOrEqualTo(String value) {
            addCriterion("icc_id >=", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdLessThan(String value) {
            addCriterion("icc_id <", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdLessThanOrEqualTo(String value) {
            addCriterion("icc_id <=", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdLike(String value) {
            addCriterion("icc_id like", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdNotLike(String value) {
            addCriterion("icc_id not like", value, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdIn(List<String> values) {
            addCriterion("icc_id in", values, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdNotIn(List<String> values) {
            addCriterion("icc_id not in", values, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdBetween(String value1, String value2) {
            addCriterion("icc_id between", value1, value2, "iccId");
            return (Criteria) this;
        }

        public Criteria andIccIdNotBetween(String value1, String value2) {
            addCriterion("icc_id not between", value1, value2, "iccId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(Integer value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(Integer value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(Integer value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(Integer value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(Integer value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<Integer> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<Integer> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(Integer value1, Integer value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(Integer value1, Integer value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andDataStateIsNull() {
            addCriterion("data_state is null");
            return (Criteria) this;
        }

        public Criteria andDataStateIsNotNull() {
            addCriterion("data_state is not null");
            return (Criteria) this;
        }

        public Criteria andDataStateEqualTo(Byte value) {
            addCriterion("data_state =", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateNotEqualTo(Byte value) {
            addCriterion("data_state <>", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateGreaterThan(Byte value) {
            addCriterion("data_state >", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("data_state >=", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateLessThan(Byte value) {
            addCriterion("data_state <", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateLessThanOrEqualTo(Byte value) {
            addCriterion("data_state <=", value, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateIn(List<Byte> values) {
            addCriterion("data_state in", values, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateNotIn(List<Byte> values) {
            addCriterion("data_state not in", values, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateBetween(Byte value1, Byte value2) {
            addCriterion("data_state between", value1, value2, "dataState");
            return (Criteria) this;
        }

        public Criteria andDataStateNotBetween(Byte value1, Byte value2) {
            addCriterion("data_state not between", value1, value2, "dataState");
            return (Criteria) this;
        }

        public Criteria andServicePasswordIsNull() {
            addCriterion("service_password is null");
            return (Criteria) this;
        }

        public Criteria andServicePasswordIsNotNull() {
            addCriterion("service_password is not null");
            return (Criteria) this;
        }

        public Criteria andServicePasswordEqualTo(String value) {
            addCriterion("service_password =", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordNotEqualTo(String value) {
            addCriterion("service_password <>", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordGreaterThan(String value) {
            addCriterion("service_password >", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordGreaterThanOrEqualTo(String value) {
            addCriterion("service_password >=", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordLessThan(String value) {
            addCriterion("service_password <", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordLessThanOrEqualTo(String value) {
            addCriterion("service_password <=", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordLike(String value) {
            addCriterion("service_password like", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordNotLike(String value) {
            addCriterion("service_password not like", value, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordIn(List<String> values) {
            addCriterion("service_password in", values, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordNotIn(List<String> values) {
            addCriterion("service_password not in", values, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordBetween(String value1, String value2) {
            addCriterion("service_password between", value1, value2, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServicePasswordNotBetween(String value1, String value2) {
            addCriterion("service_password not between", value1, value2, "servicePassword");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchIsNull() {
            addCriterion("service_switch is null");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchIsNotNull() {
            addCriterion("service_switch is not null");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchEqualTo(Byte value) {
            addCriterion("service_switch =", value, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchNotEqualTo(Byte value) {
            addCriterion("service_switch <>", value, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchGreaterThan(Byte value) {
            addCriterion("service_switch >", value, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchGreaterThanOrEqualTo(Byte value) {
            addCriterion("service_switch >=", value, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchLessThan(Byte value) {
            addCriterion("service_switch <", value, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchLessThanOrEqualTo(Byte value) {
            addCriterion("service_switch <=", value, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchIn(List<Byte> values) {
            addCriterion("service_switch in", values, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchNotIn(List<Byte> values) {
            addCriterion("service_switch not in", values, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchBetween(Byte value1, Byte value2) {
            addCriterion("service_switch between", value1, value2, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andServiceSwitchNotBetween(Byte value1, Byte value2) {
            addCriterion("service_switch not between", value1, value2, "serviceSwitch");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNull() {
            addCriterion("category is null");
            return (Criteria) this;
        }

        public Criteria andCategoryIsNotNull() {
            addCriterion("category is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryEqualTo(Byte value) {
            addCriterion("category =", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotEqualTo(Byte value) {
            addCriterion("category <>", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThan(Byte value) {
            addCriterion("category >", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryGreaterThanOrEqualTo(Byte value) {
            addCriterion("category >=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThan(Byte value) {
            addCriterion("category <", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryLessThanOrEqualTo(Byte value) {
            addCriterion("category <=", value, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryIn(List<Byte> values) {
            addCriterion("category in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotIn(List<Byte> values) {
            addCriterion("category not in", values, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryBetween(Byte value1, Byte value2) {
            addCriterion("category between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andCategoryNotBetween(Byte value1, Byte value2) {
            addCriterion("category not between", value1, value2, "category");
            return (Criteria) this;
        }

        public Criteria andRsatypeIsNull() {
            addCriterion("rsatype is null");
            return (Criteria) this;
        }

        public Criteria andRsatypeIsNotNull() {
            addCriterion("rsatype is not null");
            return (Criteria) this;
        }

        public Criteria andRsatypeEqualTo(Byte value) {
            addCriterion("rsatype =", value, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeNotEqualTo(Byte value) {
            addCriterion("rsatype <>", value, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeGreaterThan(Byte value) {
            addCriterion("rsatype >", value, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeGreaterThanOrEqualTo(Byte value) {
            addCriterion("rsatype >=", value, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeLessThan(Byte value) {
            addCriterion("rsatype <", value, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeLessThanOrEqualTo(Byte value) {
            addCriterion("rsatype <=", value, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeIn(List<Byte> values) {
            addCriterion("rsatype in", values, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeNotIn(List<Byte> values) {
            addCriterion("rsatype not in", values, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeBetween(Byte value1, Byte value2) {
            addCriterion("rsatype between", value1, value2, "rsatype");
            return (Criteria) this;
        }

        public Criteria andRsatypeNotBetween(Byte value1, Byte value2) {
            addCriterion("rsatype not between", value1, value2, "rsatype");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}